home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BorderStyle = 3 'Fixed Double
- Caption = "PerCnt Sample"
- ClientHeight = 1470
- ClientLeft = 1665
- ClientTop = 2220
- ClientWidth = 3510
- Height = 1875
- Left = 1605
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1470
- ScaleWidth = 3510
- Top = 1875
- Width = 3630
- Begin HScrollBar HScroll1
- Height = 255
- Left = 240
- Max = 100
- TabIndex = 2
- Top = 1080
- Width = 3015
- End
- Begin CommandButton Command2
- Caption = "Down"
- Height = 375
- Left = 1800
- TabIndex = 1
- Top = 600
- Width = 1455
- End
- Begin CommandButton Command1
- Caption = "Up"
- Height = 375
- Left = 240
- TabIndex = 0
- Top = 600
- Width = 1455
- End
- Begin Percent Percent1
- BackColor = &H00FFFFFF&
- Border = 1 'Fixed Single
- BorderEffect = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 15
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FF0000&
- Height = 375
- Left = 240
- Percent = 23
- Top = 120
- Width = 3015
- End
- Sub Command1_Click ()
- Dim I, J As Integer
- J = HScroll1.Value
- For I = J To 100
- DoEvents
- Percent1.Percent = I
- HScroll1.Value = I
- Next I
- End Sub
- Sub Command2_Click ()
- Dim I, J As Integer
- J = HScroll1.Value
- For I = J To 0 Step -1
- DoEvents
- Percent1.Percent = I
- HScroll1.Value = I
- Next I
- End Sub
- Sub HScroll1_Change ()
- Percent1.Percent = HScroll1.Value
- End Sub
- Sub HScroll1_Scroll ()
- Percent1.Percent = HScroll1.Value
- End Sub
-